
You will attach an ultrasonic sensor to the front of your train. This can detect the distance to the nearest obstacle. You will then write some code to use this information to stop the train when it sees a wall at the endo of the track.
Table of Contents